package com.chaodev.base.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/5/17 18:33
 **/
@ApiModel(value="建言献策对象", description="建言献策")
public class Advice implements Serializable {

    private static final long serialVersionUID = -2423483447455295484L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "报送单位编码")
    private String submitUnitCode;

    @ApiModelProperty(value = "报送单位名称")
    private String submitUnitName;

    @ApiModelProperty(value = "建言献策标题")
    private String title;

    @ApiModelProperty(value = "建言献策内容")
    private String content;

    @ApiModelProperty(value = "建言献策人")
    private String aveCode;

    @ApiModelProperty(value = "建言献策人姓名")
    private String aveName;

    @ApiModelProperty(value = "建言献策单位")
    private String aveUnit;

    @ApiModelProperty(value = "整治面貌")
    private String political;

    @ApiModelProperty(value = "建言人联系电话")
    private String phone;

    @ApiModelProperty(value = "建言时间（创建时间）")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(locale="zh",timezone="GMT+8",pattern="yyyy-MM-dd")
    private Date cTime;

    @ApiModelProperty(value = "状态（0：无效  1：有效）")
    private Integer state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getSubmitUnitCode() {
        return submitUnitCode;
    }

    public void setSubmitUnitCode(String submitUnitCode) {
        this.submitUnitCode = submitUnitCode;
    }
    public String getSubmitUnitName() {
        return submitUnitName;
    }

    public void setSubmitUnitName(String submitUnitName) {
        this.submitUnitName = submitUnitName;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public String getAveCode() {
        return aveCode;
    }

    public void setAveCode(String aveCode) {
        this.aveCode = aveCode;
    }
    public String getAveName() {
        return aveName;
    }

    public void setAveName(String aveName) {
        this.aveName = aveName;
    }
    public String getAveUnit() {
        return aveUnit;
    }

    public void setAveUnit(String aveUnit) {
        this.aveUnit = aveUnit;
    }
    public String getPolitical() {
        return political;
    }

    public void setPolitical(String political) {
        this.political = political;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Date getcTime() {
        return cTime;
    }

    public void setcTime(Date cTime) {
        this.cTime = cTime;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "TbAdvice{" +
                "id=" + id +
                ", submitUnitCode=" + submitUnitCode +
                ", submitUnitName=" + submitUnitName +
                ", title=" + title +
                ", content=" + content +
                ", aveCode=" + aveCode +
                ", aveName=" + aveName +
                ", aveUnit=" + aveUnit +
                ", political=" + political +
                ", phone=" + phone +
                ", cTime=" + cTime +
                ", state=" + state +
                "}";
    }
}
